package Set_inface_study;

public class Set {
    public static void main(String[] args){
        System.out.println(  add(1,2,3,4,5,6,7));
    }
    public static int add(int...arr)
    {
        int sum=0;
        for (int i : arr) {
            sum+=i;
        }
        return sum;
    }
}
